package com.example.workroom.mapper;

import com.example.workroom.dto.PeoplePageQueryDTO;
import com.example.workroom.pojo.People;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PeopleMapper {
    /**
     * 插入员工信息
     * @param people
     */
    void insert(People people);

    /**
     * 员工分页查询
     * @param peoplePageQueryDTO
     * @return
     */
    Page<People> pageQuery(PeoplePageQueryDTO peoplePageQueryDTO);

    /**
     * 批量删除员工信息
     * @param ids
     */
    void deleteIds(List<Integer> ids);

    /**
     * 根据id查询员工信息
     * @param id
     * @return
     */
    People getById(Integer id);

    /**
     * 更新员工信息
     * @param people
     */
    void update(People people);
}
